package com.phpxiu.app.presenters.viewinterface;


import com.phpxiu.app.model.MsgSender;
import com.phpxiu.app.model.msg.EnterMsg;
import com.tencent.TIMMessage;
import com.tencent.av.TIMAvManager;

/**
 *  直播界面回调
 */
public interface RoomView extends MVPView {

    void showVideoView(boolean isHost, String id);

    void showInviteDialog();

    void refreshText(String text, String name);

    void refreshThumbUp();

    void refreshUI(String id);

    boolean showInviteView(String id);

    void cancelInviteView(String id);

    void cancelMemberView(String id);

    void memberJoin(EnterMsg enterMsg);

    void memberQuit(String id, String name);

    void readyToQuit();

    void hideInviteDialog();

    void pushStreamSucc(TIMAvManager.StreamRes streamRes);

    void pushStreamFailed(String msg);

    /**
     * 显示连麦请求者信息，做同意或拒绝操作
     * @param msgSender 连麦请求者
     */
    public void onHostShowMultiVideoDialog(MsgSender msgSender);

    public void onHostResponseMultiVideo(boolean isAgree, String msg);

    public void hostUpdateVideoCount(String id);

    public void onReceiveMsg(TIMMessage currMsg);

    /**
     * 成员被迫下麦
     */
    public void onCancelMemberInteractVideo();
}
